package cn.lvji.springboot.learn5.vo;

import java.util.List;

/**
 * @author zhouzx
 */
public class LayuiGridResponse<T> {
    private int code;
    private String msg;
    private Long count;
    private List<T> data;

    public LayuiGridResponse() {
    }

    public LayuiGridResponse(int code, String msg, Long count, List<T> data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "LayuiGridResponse{" +
            "code=" + code +
            ", msg='" + msg + '\'' +
            ", count=" + count +
            ", data=" + data +
            '}';
    }
}
